package com.design.graduation.asdemo.service;

import com.design.graduation.asdemo.application.BaseApplication;
import com.design.graduation.asdemo.dao.TestDao;

import com.design.graduation.asdemo.model.Test;

/**
 * Created by locfai on 2016/2/21.
 */
public class DBService {

    private static TestDao getTestDao() {
        return BaseApplication.getInstance().getDaoSession().getTestDao();
    }

    public static void insertOrReplaceTest(Test test) {
        getTestDao().insertOrReplace(test);
    }
}
